//引入请求库
import http from "@/utils/http2.js";
/**
 * 查询所有材质
 */
export function queryMaterial() {
  return http.get("/api/getProductMaterialList");
}

/**
 * 提交材质
 */
export function submitMaterial(data) {
  return http.post("/api/addProductMaterial", data);
}
/**
 * 删除材质
 */
export function deleteMaterial(material_name) {
  return http.delete("/api/deleteProductMaterial", material_name);
}
